<!-- populate requests table with data received from the controller -->
<?php if ($gtAccount != NULL){ ?>

  <table>
        <tr>  
            <th>          </th>
            <th>Transaction ID</th>
            <th>Employee ID </th>
            <th>Date/Time </th>
            <th>Clock In </th>
            <th>Replaces </th>
            <th>Project ID </th>
            <th>Comment </th>
            <th>Approve </th>
        </tr>  
                <tr>  
                   <td>Requested Change</td>
                   <td><?php echo $request['Request']['request_id']; ?></td>  
                   <td><?php echo $request['Request']['employee_id']; ?></td>  
                   <td><?php echo $request['Request']['date']; ?></td>  
                   <td><?php echo $request['Request']['clock_in']; ?></td>  
                   <td><?php echo $request['Request']['replaces']; ?></td>  
                   <td><?php echo $request['Request']['proj_id']; ?></td>  
                   <td><?php echo $request['Request']['comment']; ?></td>  
                   <td><?php echo $this->Html->link('Deny ',
                        array('controller' => 'Manager',
                        'action' => 'deny',
                        $request['Request']['request_id']
                        )); 
                        echo $this->Html->link('approve',
                        array('controller' => 'Manager',
                        'action' => 'approve',
                        $request['Request']['request_id']
                        )); 
                        ?>
                   </td>  
                 </tr>  
                <tr>
                  <td>Original</td>
                  <td><?php echo $originalHour['Hour']['trans_id']; ?></td>  
                  <td><?php echo $originalHour['Hour']['employee_id']; ?></td>  
                  <td><?php echo $originalHour['Hour']['date']; ?></td>  
                  <td><?php echo $originalHour['Hour']['clock_in']; ?></td>  
                  <td><?php echo $originalHour['Hour']['replaces']; ?></td>  
                  <td><?php echo $originalHour['Hour']['proj_id']; ?></td>  
                  <td> </td>  
                  <td> </td>  
            
  
                </tr>
 </table>

<?php } else{ ?>
<h1> Invalid Login </h1>
<?php }?>
